package cn.xugongwei.microserviceprovide8443.service;

import cn.xugongwei.microservicecommon.entity.UserEntity;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestMethod;

import java.util.List;

/**
 * @author xugongwei (isxugongwei(a)gmail.com)
 * @version 1.0
 * @date 2019/4/10 11:59
 */
public interface UserService {

    @RequestMapping(value = "/provide/user/list", method = RequestMethod.GET)
    List<UserEntity> listUser();

    @RequestMapping(value = "/provide/user/get/{id}", method = RequestMethod.GET)
    UserEntity getUserById(@PathVariable("id") Integer id);
}
